package com.situ.boot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
	
	@Value("${name}")
	private String name;
	
	@Value("${age}")
	private int age;
	
	@Value("${content}")
	private String content;

	@RequestMapping("/hello")
	@ResponseBody
	public String hello() {
		return "Hello SpringBoot";
	}
	
	@RequestMapping("/hello2")
	@ResponseBody
	public String hello2() {
		return name + " : " + age + ", content: " + content;
	}
}
